 <!-- 登录页 -->
<template >
    <div class="login_bg">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td align="center" valign="middle" height="100%">
                    <!--登录界面Begin-->
                    <div class="loginBg">
                    </div>
                    <!--登录Form Begin-->
                    <div class="loginFormBg">
                        <div>
                            <div class="lodingposition" v-show="loding">
                                <div class="csshub-loader ">
                                </div>
                            </div>
                            <table border="0" width="100%" height="130px">
                                <tr>
                                    <td align="center" valign="middle" width="85px">
                                        <img src="../assets/ICON_login.png" border="0" />
                                    </td>
                                    <td align="left" valign="middle">
                                        <table border="0" width="100%" cellpadding="2" cellspacing="5" height="130px">

                                            <tr>
                                                <td>
                                                    用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户：
                                                </td>
                                                <td>
                                                    <input type="text" class="loginInput" v-model="name" />

                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：
                                                </td>
                                                <td>
                                                    <input type="password" class="loginInput" v-model="password" />

                                                </td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <button class="login_button" @click="loginsuccess">
                                                    用户登陆
                                                </button>

                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <!--登录Form end-->
                    <!--登录界面End-->

                </td>
            </tr>
            <tr align="center">
                <td>京ICP备11032734号-4</td>
            </tr>
        </table>

    </div>
</template>
<script>
import api  from '@/js/api'
export default {
    data() {
        return {
            name: '',
            password: '',
            loding: false
        }
    },
    methods: {
        loginsuccess() {
            this.loding = true;
            let that = this;
            var data={
                name:this.name,
                password:this.password
            }
            api.Login(that,data,function(msg){       
               }
            )
            
        }
    },
    created(){
        
    }

}
</script>
<style scoped>
.login_bg {
    background: #00a0d2;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif, 宋体;
    overflow: scroll;
}

.loginBg {
    background: url(../assets/sy2.jpg);
    background-repeat: no-repeat;
    height: 900px;
    width: 1555px;
    text-align: left;
    background-color: #00a0d2;
}

.loginFormBg {
    background-image: url(../assets/oa_login_form_bg.png);
    background-repeat: no-repeat;
    width: 386px;
    height: 140px;
    margin-left: 1px;
    margin-top: -420px;
    text-align: left;
    color: #ffffff;
}

.loginInput1 {
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    border-left-color: #000000;
    font-family: Arial, Helvetica, sans-serif, "宋体";
    font-size: 12px;
    height: 14px;
    width: 140px;
}

.loginInput {
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    border-left-color: #000000;
    font-family: Arial, Helvetica, sans-serif, "宋体";
    font-size: 12px;
    height: 14px;
    width: 140px;
}

.login_button {
    background: rgb(0, 159, 209);
    color: #fff;
    border-radius: 5px;
    line-height: 24px;
    border: 0;
    width: 92px;
}

.csshub-loader {
    width: 56px;
    height: 56px;
    border: 8px solid transparent;
    border-top-color: #0052ec;
    border-bottom-color: #0052ec;
    border-radius: 50%;
    position: relative;
    animation: csshub-loader-rotate 1s linear infinite;
    -webkit-animation: csshub-loader-rotate 1s linear infinite;
    top: 50%;
    margin: -28px auto 0 auto;
}

.lodingposition {
    position: relative;
    text-align: center;
    width: 386px;
    height: 140px;
    line-height: 140px;
}

.lodingposition {
    position: absolute;
}

@keyframes csshub-loader-rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes csshub-loader-rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
</style>